<template>
	<view class="main-container">
		<view class="suggestion-box">
			<view>
				<view class="title">意见反馈</view>
				<textarea v-model="suggestionContent" name="mySuggestion" id="mySuggestion" placeholder="请描述你的问题"
					maxlength="1000"
				></textarea>
			</view>
		</view>
		<view class="submit-box">
			<button @click="commitSuggestion">提交</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				suggestionContent: ""
			}
		},
		methods: {
			commitSuggestion(){
				console.log(this.suggestionContent);
				this.$api.msg("提交成功")
				this.suggestionContent = ""
			}
		}
	}
</script>

<style lang="scss" scoped>
	.main-container {
		position: relative;
		background: #F5F5F9;
		height: 100vh;
		padding-top: 24upx;
		
		.suggestion-box{
			background-color: white;
			margin: 24upx;
			padding: 24upx;
			border-radius: 16rpx;
		}
		#mySuggestion {
			width: 654rpx;
			padding: 24upx;
			font-weight: 400;
			font-size: 28rpx;
			color: #C8C9CC;
			line-height: 42rpx;
			text-align: left;
			background-color: #F5F5F9;
		}
	}
	.submit-box{
		position: absolute;
		left: 0;
		bottom: 0;
		width: 750upx;
		height: 220upx;
		background-color: white;
		button {
			width: 702rpx;
			height: 88rpx;
			background: #3EB3F3;
			border-radius: 50rpx;
			color: white;
		}
	}
	
</style>
